<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.alpha.bom.*" %>
<%@	taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Results by Examinee</title>
</head>
<body>

	<c:set var="user" value="${sessionScope.user}"></c:set>
	
	<c:if test="${user.userType ne 'Professor'}" >
		<c:redirect url="LoginServlet"></c:redirect>
	</c:if>
	
	<div id="header"><%@ include file="Header.jsp"%></div>
	<div id="content">
	<div id="navbar"><%@ include file="NavigationBar.jsp"%></div>
	<div id="main">
	
	<div class="box">
		<div class="box-header well">
			<h2><i class="icon-book"></i> Examinees</h2>
			<div class="box-icon"></div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
				<thead>
				 <tr>
				  <th>Examinee ID</th>
				  <th>Examinee Name</th>
				  <th>Action</th>
				 </tr>
				</thead>   
				<tbody>
					<c:forEach var="student" items="${user.students }">
						<tr>
						<td class="center">${student.userId}</td>
						<td class="center">${student.lastName}, ${student.firstName}</td>
						<td>
						<a class="btn btn-info" href="ExamineeReportServlet?student_id=${student.userId}"><i class=" icon-info-sign"></i> View Exams</a>
						</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
	
	</div>
	</div>

</body>
</html>